﻿using SettingsManagement.Localization;
//using Volo.Abp.Features;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.Validation;
using Volo.Abp.VirtualFileSystem;
using Xms.Abp.Modularity;

namespace SettingsManagement;

[DependsOn(
    typeof(AbpLocalizationModule),
    typeof(AbpValidationModule)//,
    //typeof(AbpFeaturesModule)
    )]
public class SettingsManagementDomainSharedModule : XmsModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        Configure<AbpVirtualFileSystemOptions>(options =>
        {
            options.FileSets.AddEmbedded<SettingsManagementDomainSharedModule>();
        });

        Configure<AbpLocalizationOptions>(options =>
        {
            options.Resources
                .Add<SettingsManagementResource>("en")
                .AddVirtualJson("/SettingsManagement/Localization/Resources");
        });
    }
}
